﻿

using FrameWorkConfig = ElectronicCommerce.Framework.Configuration;
namespace ElectronicCommerce.Framework.ServiceModel.Configuration
{
    /// <summary>
    /// 
    /// </summary>
    public class ServiceModelConfigHelper
    {
        /// <summary>
        /// 服务配置。
        /// </summary>
        public static ServiceConfig ServiceConfig
        {
            get
            {
                return FrameWorkConfig.ConfigManager.GetConfig<ServiceConfig>();
            }
        }

        /// <summary>
        /// 服务绑定配置。
        /// </summary>
        public static ServiceBindingConfig ServiceBindingConfig
        {
            get
            {
                return FrameWorkConfig.ConfigManager.GetConfig<ServiceBindingConfig>();
            }
        }

        /// <summary>
        /// 服务对应服务器配置。
        /// </summary>
        public static ServiceServerConfig ServiceServerConfig
        {
            get
            {
                return FrameWorkConfig.ConfigManager.GetConfig<ServiceServerConfig>();
            }
        }
    }
}
